package com.wcbtest.docker.domain.dto;

import com.github.dockerjava.api.model.ContainerMount;
import com.wcbtest.docker.enums.ServiceTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class DockerContainerInfoDTO {
    @ApiModelProperty(value = "容器ID")
    private String id;
    @ApiModelProperty(value = "容器名称")
    private String name;
    @ApiModelProperty(value = "运行状态(true:运行中, false:已停止)")
    private Boolean status;
    @ApiModelProperty(value = "镜像名称")
    private String image;
    @ApiModelProperty(value = "描述信息")
    private String desc;
    @ApiModelProperty(value = "端口映射")
    private List<String> ports;
    @ApiModelProperty(value = "标签")
    private Map<String, String> labels;
    @ApiModelProperty(value = "命令")
    private String command;
    @ApiModelProperty(value = "挂载")
    private   List<ContainerMount> mounts;
    @ApiModelProperty(value = "创建时间")
    private Long created  ;
    @ApiModelProperty(value = "服务类型")
    private ServiceTypeEnum type;
    @ApiModelProperty(value = "日志显示行数，在显示日志时使用")
    private Integer logTailLineCount;
    @ApiModelProperty(value = "是否是DockerCompose")
    private Boolean isDockerCompose;
}


